package server;

import protocol.MyProtocol;

import java.util.HashMap;
import java.util.Map;

/**
 * @author rikun
 */
public class MyProtocolImpl implements MyProtocol {

    private Map<String, String> mapping = null;

    public MyProtocolImpl() {
        mapping = new HashMap<>();
        mapping.put("123","rikun");
    }

    @Override
    public String getNameById(String studentId) {
        System.out.println("ID: " + studentId);
        return mapping.get(studentId);
    }

}
